import request from '@/utils/request'

// 商品规格列表
export function specificationQueryList(data) {
  return request({
    url: 'goodsSpecification/queryList',
    method: 'post',
    data: data
  })
}

// 商品规格详情
export function specificationQueryId(data) {
  return request({
    url: 'goodsSpecification/queryId',
    method: 'post',
    data: data
  })
}

// 添加
export function specificationAdd(data) {
  return request({
    url: 'goodsSpecification/add',
    method: 'post',
    data: data
  })
}

// 更新
export function specificationUpdate(data) {
  return request({
    url: 'goodsSpecification/update',
    method: 'post',
    data: data
  })
}

// 删除
export function specificationDelete(data) {
  return request({
    url: 'goodsSpecification/delete',
    method: 'post',
    data: data
  })
}
